#!/usr/bin/env node

const fs = require ('fs');
const lnk = process.argv[2];
const src = fs.readlinkSync(lnk);
if(typeof(src)==='undefined' || process.argv.length !==3){
  err('命令行参数不正确');
  process.exit(1);
}
try{
  console.log(`${lnk} => ${src}`);
}catch(err){
  err(err.message);
  process.exit(1);
}
